<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      width: 200px;
      height: 200px;
      margin: 100px auto;
      background-color: pink;
      transition: all 0.5s;
    }

    .box:hover {
      /* transform: translate3d(100px, 200px, 300px); */
      /* transform: translate3d(100px, 200px); */
      /* transform: translateX(100px); */
      /* transform: translateY(-100%); */
      transform: translateZ(300px);
    }
  </style>
</head>
<body>
  <div class="box"></div>
</body>
</html>